package com.kuhnwei.examples.patterns.singleton;

/**
 * Created by Kuhn on 2017/8/15.
 */
public class Singleton {

    private static final Singleton INSTANCE = new Singleton();

    private Singleton() {}

    public static Singleton getInstance() {
        return INSTANCE;
    }

    public void print() {
        System.out.println("单例设计模式。");
    }

}
